home *** CD-ROM | disk | FTP | other *** search
/ New Perspectives on Computer Concepts / New Perspectives on Computer Concepts.iso / np2010c / page765.pag < prev    next >
Portable Network Graphic  |  2008-10-02  |  51KB  |  817x1045  |  8-bit (256 colors)
Labels: crt screen | hakham | monitor | road | windowpane
OCR: COMPUTER PROGRAMMING 6 9 7 Can the computer make decisions while it executes pro- TERMINOL OGY NOTE gram? A selection control structure tells a computer what to do based on whether condition is true or false simple example of a selection con- Selection are also control referred struc- to trol structure the IF .THEN. EL LSE command tures as decision structures or The following program uses this command to decide whether number branches entered is greater than 10 If the number is greater than 10 the computer prints That number greater than 10 If the number is not greater than 10 the program performs the ELSE instruction and prints That num- ber less Input "Enter number from to 10 Number If Number 10 Ther Print "That number is greater than 10 Else Print "That number les End FIGURE 12-27 Figur ...